package com.threemeals.controller;

import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;

import com.threemeals.common.pojo.Result;
import com.threemeals.service.TestService;

 

 
/**
 * 
* <p>版权所有:(C)2016-2018 Three-Meals</p>
* @作者: 陈荣安
* @日期: 2017年4月20日 下午5:36:00
* @描述: [PictureController]图片上传示例类
 */
@Controller
@RequestMapping(value="/test")
public class TestController {
	
	static Logger logger = LogManager.getLogger(LogManager.ROOT_LOGGER_NAME);
	@Autowired
	TestService testService;
	 

	@RequestMapping(value="/list", method=RequestMethod.GET)
	@ResponseBody
	public Object test(String name) {
	 String helName=   testService.HelloWorld(name);
          return new Result(500, helName);
	}
}
